home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / util2 / misc.lha / Misc / Install-Misc < prev    next >
Text File  |  1995-12-03  |  6KB  |  150 lines

  1. ;**********************************************************
  2. ;
  3. ;    Installation script for Misc v1.0
  4. ;       v0.9
  5. ;
  6. ;  AMINET-STUFF: MAGICWB / SMALLBENCH
  7. ;
  8. ;**********************************************************
  9.  
  10. ;************
  11. ; PROCEDURES
  12. ;************
  13.  
  14. (procedure choosestuff
  15.     (
  16.         (set @default-dest
  17.             (askdir
  18.                 (prompt "Choose directory where you would like to place the Misc-executable.\n The Installer will NOT create a directory.")
  19.                 (help @askdir-help)
  20.                 (default @default-dest)
  21.             )
  22.         )
  23.         (set docdir
  24.             (askdir
  25.                 (prompt "Choose directory where you would like to place the Misc documentation\n Again, no directory will be created!")
  26.                 (help @askdir-help)
  27.                 (default @default-dest)
  28.             )
  29.         )
  30.         (if
  31.             (askbool
  32.                 (prompt "Misc requires Textfield.gadget to run, it must be installed in the `sys:classes/gadgets' - drawer.\nIf there's a newer version already installed, it won't be overwritten.\n\nIs this OK?")
  33.                 (help "Misc uses Textfield.gadget for editing files in. The Textfield.gadget is included in the package and it can be installed for you now.\nThe version to be installed is version 3.1, if there is a newer version it won't be overwritten.\nFor information on how to use the Textfield.gadget, please read the documentation!\n\n It will be installed in `sys:classes/gadgets'.")
  34.                 (default 1)
  35.             )
  36.             (set copygadget "to\n`sys:classes/gadgets'")
  37.             (set copygadget "won't be installed.")
  38.         )
  39.         (set icons
  40.             (askchoice
  41.                 (prompt "What type of Icons would you like to have installed?")
  42.                 (help "You should choose what type of Icons you would like to have installed for your programs. The choices are:\n\n MagicWB - Default. Icons using the MagicWB-standard by Martin Huttenloher.\n\n Smallbench - MagicWB-style icons for screenmodes with a pixel aspect ratio of 1:2, e.g. High Res NoLace. By Tom Oszczepalski & Paul Henrik.\n\n Normal Workbench icons - These are the standard AmigaOS2-look icons. They suck!")
  43.                 (choices "MagicWB" "Smallbench (NoLace)" "Normal Workbench icons")
  44.             )
  45.         )
  46.         (if
  47.             (= icons 0)
  48.             (set icontype "MagicWB")
  49.         )
  50.         (if
  51.             (= icons 1)
  52.             (set icontype "Smallbench")
  53.         )
  54.         (if
  55.             (= icons 2)
  56.             (set icontype "Normal")
  57.         )
  58.         (set putadditional
  59.             (askbool
  60.                 (prompt "Would you like to have the Additional Icons installed?\nThese are icons for different ToolManager docks, CircleSoft logos! (YES!) and an Imagedrawer.\nThey will be put in a drawer called `MiscIcons'")
  61.                 (help "Here you can choose whether you would like to install some additional icons to the ones necessary to run Misc. They are different ToolManager dockicons (MagicWB, TMTM (TinyMiniToolManager), KMI...). And some CircleSoft logos (We don't know what you would do with this, but our ego forces us to include this with the archive. Plus an Imagedrawer in case you would like to have Misc in an own drawer.")
  62.             )
  63.         )
  64.         (if (= putadditional 1)
  65.             (set iconsdir
  66.                 (askdir
  67.                     (prompt "Choose directory where you would like to install the additional Icons. A drawer called `MiscIcons' will be created.")
  68.                     (help @askdir-help)
  69.                     (default @default-dest)
  70.                 )
  71.             )
  72.         )
  73.     )
  74. )
  75.  
  76.  
  77. ;********
  78. ;  MAIN
  79. ;********
  80.  
  81. ; *****************************
  82. ;  Check for correct OS (2.0+)
  83. ; *****************************
  84.  
  85. (if (< (/ (getversion) 65536) 37)
  86.     (abort
  87.         "Misc requires at least AmigaOS v2.0."
  88.     )
  89. )
  90.  
  91. ; *****************************
  92. ;  Choose where&what to install
  93. ; *****************************
  94.  
  95. (choosestuff)
  96.  
  97. (until
  98.     (askbool
  99.         (prompt ("These files will now be copied:\n\n The Misc executable to:\n`%s'\nThe Misc documentation to:\n`%s'\nThe Textfield.gadget %s\n\nAnd you have chosen the %s icons.\n\n Is this OK?" @default-dest docdir copygadget icontype))
  100.         (help "If you click on \"Copy Files\", the files will be copied into the directories of your choice. And if you click on \"Choose again\", you can correct eventual mistakes.")
  101.         (choices "Copy Files" "Choose again")
  102.     )
  103.     (choosestuff)
  104. )
  105.  
  106. (copyfiles
  107.     (prompt "The executable")
  108.     (source "Misc")
  109.     (dest @default-dest)
  110. )
  111. (copyfiles
  112.     (prompt "The executable icon")
  113.     (source ("Icons/%s/Misc.info" icontype))
  114.     (dest @default-dest)
  115. )
  116. (copyfiles
  117.     (prompt "The documentation")
  118.     (source "Misc.guide")
  119.     (dest docdir)
  120. )
  121. (copyfiles
  122.     (prompt "The Documentation icon")
  123.     (source ("Icons/%s/Misc.guide.info" icontype))
  124.     (dest @default-dest)
  125. )
  126. (if (= copygadget "to\n\n sys:classes/gadgets")
  127.     (
  128.         (copyfiles
  129.             (prompt "Textfield.gadget Docs")
  130.             (source "Docs/Textfield.DOC")
  131.             (dest docdir)
  132.             (infos)
  133.         )
  134.         (copylib
  135.             (prompt "Textfield.gadget")
  136.             (source "Textfield.gadget")
  137.             (dest "sys:classes/gadgets")
  138.         )
  139.         (message "Please read the file `Textfield.DOC'")
  140.     )
  141. )
  142. (if (= putadditional 1)
  143.     (copyfiles
  144.         (prompt "Additional Icons")
  145.         (source "Icons/Additional")
  146.         (dest (tackon iconsdir "MiscIcons"))
  147.         (all)
  148.     )
  149. )
  150.